package org.xiaojinlong.reading;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Stack;

/**
 * Created by jinlong on 2015/2/2.
 */
public class LinkedList<E> extends java.util.LinkedList<E> {
    public static void main(String[] args) {
        LinkedList<String> linkedList = new LinkedList<>();
        Collections.addAll(linkedList, "a", "b", "c");
        System.out.println(linkedList.element());
        System.out.println(linkedList.poll());
        System.out.println(linkedList);
        Stack<Integer> stack = null;
        ArrayList<Integer> a = new ArrayList<>(Arrays.asList(1, 2, 3));
    }
}

class TwoTuple<A, B> {
    public final A first;
    public final B second;
    TwoTuple(A a, B b) {
       first = a; second = b;
    }
}
